
Ext.onReady(function() {
	
	$('#home_logout').click(function() {		//注销用户
		$('#home_logout').text('正在注销...');
		
		Ext.Ajax.request({
			url: '/szpxt-beta/home_logout',
			success: function(response, opts) {
				var obj = Ext.decode(response.responseText);
				if(obj.success) {
					document.location = '/szpxt-beta/main/home.jsp';
				}
			}
		});
	});
})